package com.ali.ttt.netty.common.domain;

import io.netty.channel.ChannelHandlerContext;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author yuxl
 */
@Data
@ApiModel(value = "消息体")
public class Message<T> {

    @ApiModelProperty("路径")
    private String path;

    @ApiModelProperty("channel")
    private ChannelHandlerContext ctx;

    @ApiModelProperty("消息")
    private T msg;

    public Message(){

    }
    public Message(String path){
        this.path = path;
    }

}
